<?php

class Config extends EMongoDocument {

    public $hotel;
    public $channel;
    public $roomType;
    public $singleNet;
    public $doubleNet;
    public $trippleNet;
    public $available;
    public $minStay;
    public $extraBed_adults;
    public $extraBed_Children;
    public $allowExtraBed;
    public $pickup;
    public $dropoff;
    public $offers_active;
    /*public $unit;
    public $metaDescription;
    public $metaTitle;
    public $metaKeyword;
*/
    public function attributeLabels() {
        return array(
            'hotel' => 'hotel',
            'channel' => 'channel',
            'roomType' => 'roomType',
            'singleNet' => 'singleNet',
            'doubleNet' => 'doubleNet',
            'trippleNet' => 'trippleNet',
            'available' => 'available',
            'minStay' => 'minStay',
            'extraBed_adults' => 'extraBed_adults',
            'extraBed_Children' => 'extraBed_Children',
            'allowExtraBed' => 'allowExtraBed',
            'pickup' => 'pickup',
            'dropoff' => 'dropoff',
            'offers_active' => 'offers_active'
            /*'unit' => 'unit',
            'metaTitle' => 'metaTitle',
            'metaKeyword' =>'metaKeyword',
            'metaDescription' => 'metaDescription'*/
        );
    }
    public function rules(){
        return array(
            array('offers_active,pickup,dropoff,hotel,roomType,channel,singleNet,doubleNet,trippleNet,available,minStay,extraBed_adults,extraBed_Children,allowExtraBed','safe')
        );
    }

    public static function model($className = __CLASS__) {
        return parent::model($className);
    }

    public function getCollectionName() {
        return 'configs';
    }
}

?>
